package space.sakana.edusysback.util;

import cn.hutool.core.util.RandomUtil;

import java.util.UUID;

public class StringUtil {

    public static String getUUIDString(){
        UUID uuid = UUID.randomUUID();
        return uuid.toString();
    }

    public static String getRandomString(){
        return RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 50);
    }

    public static String getAccountString(){
        return RandomUtil.randomString("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 15);
    }

    public static String getCdkString(){
        return RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 20);
    }

}
